using System;
using System.Configuration;
using System.Data;
using System.Collections;
using System.Data.Common;
using System.Data.OracleClient;
using System.Web;

namespace App_Code.PublicHelper
{
    public static class UserHelper
    {
        public static string UserSession = "USERS";

        public static bool IsLogin()
        {
            User user = HttpContext.Current.Session[UserSession] as User;
            return user != null;
        }

        public static User GetCurrentUser()
        {
            User user = HttpContext.Current.Session[UserSession] as User;
            return user;
        }
        

    }
}

